﻿var taobaopp_peizhi = 
{
	dialogShow: function(){
		window.openDialog("chrome://taobaoplusplus/content/peizhi.xul", "","centerscreen=yes,chrome=yes,modal=yes",this.options);
	}, 
	init: function(){
		var prefs = Components.classes["@mozilla.org/preferences-service;1"]
			.getService(Components.interfaces.nsIPrefService)
			.getBranch("taobaoplusplus.")
		window.document.getElementById('taobaopp_sbimg').hidden = !(prefs.getBoolPref('statusbarImg'))
		alert(prefs.getBoolPref('statusbarImg'))
	},	
}
taobaopp_peizhi.init()